package com.jc.oms.controller.login;

import java.math.BigDecimal;
import java.util.HashMap;
import java.util.Map;

import javax.servlet.http.HttpServletRequest;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;
import org.springframework.web.bind.annotation.ResponseBody;

import com.jc.business.supplier.SupplierBusiness;
import com.jc.business.supplierproduct.SupplierProductBusiness;
import com.jc.ds.model.Supplier;
import com.jc.oms.controller.BaseController;
import com.jc.service.jg.JgService;
import com.jc.service.jg.mq.MqUtil;
import com.jc.service.supplier.SupplierService;

@Controller()
@RequestMapping("login")
public class LoginController extends BaseController {
	@Autowired
	SupplierBusiness supplierBusiness;
	
	@Autowired
	SupplierService supplierService;
	
	@Autowired
	JgService jgService;
	
	@Autowired
	SupplierProductBusiness supplierProductBusiness;	
	
	@RequestMapping(value="/queuesize" , method = RequestMethod.GET )
	public @ResponseBody Map<String,Object> queuesize(HttpServletRequest req){
		Map<String,Object> _ret = new HashMap<String,Object>();
		_ret.put("size", "队列里还有待保存产品数量 : " + MqUtil.queue.size());
		return _ret;
	}	
	
	
	@RequestMapping()
	public String toLogin() {
		return "login";
	}
	

	

}
